inspector: Make resource list columns resizable
authorMatthias Clasen <mclasen@redhat.com>
Sat, 11 Oct 2014 11:55:25 +0000 (07:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Oct 2014 12:01:50 +0000 (08:01 -0400)
This tree has the potential to be deep, and contain long
names, so it forces the window to be wide, unless we
allow the columns to shrink.

gtk/inspector/resource-list.ui

index 3ad78bff37f049a445d47d3a4f388a4d808b14da..6211ce7d8f1a6b0bd0025f89fc95eb149b26f39a 100644 (file)
                 <child>
                   <object class="GtkTreeViewColumn">
                     <property name="title" translatable="yes">Path</property>
+                    <property name="resizable">True</property>
                     <property name="sort-column-id">0</property>
                     <child>
                       <object class="GtkCellRendererText">
                         <property name="scale">0.8</property>
+                        <property name="ellipsize">end</property>
+                        <property name="width-chars">10</property>
+                        <property name="max-width-chars">5</property>
                       </object>
                       <attributes>
                         <attribute name="text">0</attribute>
@@ -51,6 +55,7 @@
                 <child>
                   <object class="GtkTreeViewColumn" id="count_column">
                     <property name="title" translatable="yes">Count</property>
+                    <property name="resizable">True</property>
                     <property name="sort-column-id">1</property>
                     <child>
                       <object class="GtkCellRendererText" id="count_renderer">
@@ -62,6 +67,7 @@
                 <child>
                   <object class="GtkTreeViewColumn" id="size_column">
                     <property name="title" translatable="yes">Size</property>
+                    <property name="resizable">True</property>
                     <property name="sort-column-id">2</property>
                     <child>
                       <object class="GtkCellRendererText" id="size_renderer">